#include <cmapi.h>
|
| NQ_INT | activationPriority |
| |
| NQ_UINT32 | timeout |
| |
| NQ_IPADDRESS * | serverIP |
| |
| NQ_STATUS(* | requestByName )(SYSocketHandle socket, const NQ_WCHAR *name, void *context, const NQ_IPADDRESS *serverIp, NQ_COUNT *numOfSentRequests) |
| |
| NQ_STATUS(* | responseByName )(SYSocketHandle socket, NQ_IPADDRESS **pAddressArray, NQ_INT *numIps, void **pContext) |
| |
| NQ_STATUS(* | requestByIp )(SYSocketHandle socket, const NQ_IPADDRESS *ip, void *context, const NQ_IPADDRESS *serverIp, NQ_COUNT *numOfSentRequests) |
| |
| NQ_STATUS(* | responseByIp )(SYSocketHandle socket, const NQ_WCHAR **pName, void **pContext) |
| |
A descriptor of one resolver method. Use this structure to register a resolution method using the cmResolverRegisterExternalMethod()
| NQ_INT CMResolverRegisteredMethodDescription::activationPriority |
This parameter may have one of the following values:
- Activate registered method before all other methods.
- Activate registered method after the existing NQ unicast methods and before existing NQ multicast methods. In this case registered method will be activated only if existing NQ unicast methods failed to resolve name or IP
- Activate registered method only if all other methods failed.
| NQ_UINT32 CMResolverRegisteredMethodDescription::timeout |
Timeout in seconds to use with this method
| NQ_IPADDRESS* CMResolverRegisteredMethodDescription::serverIP |
IP of the server to perform resolution with. This value is only used by Unicast methods.
Routine for composing and sending a name resolution request
- Parameters
-
| socket,: | Socket handle to use for sending |
| name,: | Name to resolve |
| context,: | Pointer to a method-specific context. This value may be NULL on the first call. |
| serverIp,: | Pointer to the IP of the server to query or NULL for multicast |
| numOfSentRequests,: | Return the number of requests that were sent. |
- Returns
- NQ_SUCCESS request sent NQ_ERR_<*> error
Routine for receiving and parsing a name resolution response
- Parameters
-
| socket | Socket handle to use for sending |
| pAddressArray | Address of the pointer which this call sets to an array of resolved IP addresses. It is caller's responsibility to release this array. On error, this pointer remains untouched. |
| numIps | Pointer to the number of resolved IPs. |
| pContext | Double pointer to a method-specific context. Method may dispose context and create a new one. |
- Returns
- NQ_SUCCESS name successfully resolved NQ_ERR_MOREDATA more exchange expected NQ_ERR_NOACCESS more comprehensive method with the same code should be used NQ_ERR_<*> error
Routine for composing and sending an IP resolution request
- Parameters
-
| socket | Socket handle to use for sending |
| ip | Pointer to the IP address to resolve. |
| context | Pointer to a method-specific context. This value may be NULL on the first call. |
| serverIp | Pointer to the IP of the server to query or NULL for multicast |
| numOfSentRequests | Return the number of requests that were sent. |
- Returns
- NQ_SUCCESS request sent NQ_ERR_<*> error
Routine for receiving and parsing a name resolution response
- Parameters
-
| socket | Socket handle to use for sending |
| pName | Double pointer to the resolved name. On success, this variable will point to a newly allocated name. Its is caller's responsibility to release it later. |
| pContext | Double pointer to a method-specific context. Method may dispose context and create a new one. |
- Returns
- NQ_SUCCESS name successfully resolved NQ_ERR_MOREDATA more exchange expected NQ_ERR_NOACCESS more comprehensive method with the same code should be used NQ_ERR_<*> error
The documentation for this struct was generated from the following file: